<template>
  <div class="top-nav">
    <a href="">
      <img src="../../../assets/imgs/sifa/sifa_logo.png" alt="">
    </a>
    <div class="tabs-view">
      <img src="../../../assets/imgs/sifa/logo.png" alt="">
      <div class="divider"></div>
      <div class="tab-items" v-for="item in tabs" :key="item">
        <span class="item">{{ item.text }}</span>

      </div>
      <div class="search-box">
        <input type="text" placeholder="标的物名称/地理位置/案号">
        <button>
          <i class="iconfont icon-sousuo"></i>
        </button>
      </div>
    </div>

  </div>
</template>

<script setup>
// 在这里写 Composition API 代码
const tabs = [
  { text: '司法拍卖' },
  { text: '司法拍卖' },
  { text: '司法拍卖' },
  { text: '司法拍卖' },
  { text: '司法拍卖' },
  { text: '司法拍卖' },
]
</script>

<style scoped lang="scss">
// 在这里写 SCSS 样式
.top-nav {
  background-color: #fff;

  a {
    cursor: pointer;

    img {
      width: 100%;
    }

    .divider {
      background-color: #e91a1a;
      border-right: 2px solid;
    }
  }

  .tabs-view {
    background-color: #fff;
    padding: 0 40px;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 15px;

    .tab-items {

      .item {}
    }

    .search-box {
      position: absolute;
      right: 10%;

      input {
        border-radius: 10px;
        height: 28px;

        background-color: rgb(244, 244, 244);
        border: none;

        &::placeholder {
          font-size: 8px;
          text-align: center;
        }
      }

      button {
        background-color: rgb(199, 22, 34);
        border-radius: 0 15px 15px 0;
        height: 29px;
        width: 50px;
        margin-left: -30px;
        border: none;

        i {
          color: #fff;
          font-size: 20px;
          font-weight: 700;
        }
      }
    }
  }
}
</style>
